package com.bizihang.validate.code.core;

/**
 * 验证码工厂
 */
public interface ValidateCodeProcessor {

    /**
     * 创建验证码
     *
     * @param client
     * @return
     */
    void create(Client client);

    /**
     * 验证并删除
     *
     * @param client
     * @return
     */
    void validate(Client client, ValidateCode codeInClient);

    /**
     * 验证但不删除
     *
     * @param client
     */
    void check(Client client, ValidateCode codeInClient);
}
